package xcmg.device.dao.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import xcmg.device.dao.entity.company.DealerClassDO;
import xcmg.device.service.vo.company.DealerClassVO;

import java.util.List;

@Mapper
public interface DealerClassMapper {
    int deleteByPrimaryKey(Long id);

    int insert(DealerClassDO record);

    DealerClassDO item(Long id);

    List<DealerClassDO> listIdByValue(DealerClassDO classDO);

    int update(DealerClassDO record);

    String getMaxValue(@Param("pId")Long pId,@Param("orgId")String orgId);

    List<DealerClassDO> list(DealerClassVO record);

    int deleteByValue(@Param("orgId") String orgId,@Param("classValue") String classValue);

    Integer nameCount(DealerClassDO record);
}